/**
 * Created by lenovo on 2015/3/22.
 */
var tab_i = "tab_";
var tab_body_j = "tab_body_";
function tab_n(index,maxIndex){
    $("#" + tab_i + index).addClass("active");
    $("#" + tab_body_j + index).css("display","block");
    tab_clean(index,maxIndex);
}
function tab_clean(index,maxIndex){
    for(var i = 1 ; i <= maxIndex ; i ++){
        if(i == index){
            continue;
        }
        $("#" + tab_i + i).removeClass("active");
        $("#" + tab_body_j + i).css("display","none");
    }
}